notebook: Update arrow state when switching pages
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2016 18:10:35 +0000 (14:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Aug 2016 18:10:35 +0000 (14:10 -0400)
Otherwise, we may end up showing clickable arrows that don't
do anything.

https://bugzilla.gnome.org/show_bug.cgi?id=770332

gtk/gtknotebook.c

index 4452fc64bcc4d8423f89743d295b456514cfb8af..60f4b1505e25d3da7b2c0b19091cf7c8d9a60b2a 100644 (file)
@@ -6202,6 +6202,9 @@ gtk_notebook_real_switch_page (GtkNotebook     *notebook,
           gtk_widget_grab_focus (GTK_WIDGET (notebook));
     }
 
+  if (priv->scrollable)
+    gtk_notebook_redraw_arrows (notebook);
+
   gtk_widget_queue_resize (GTK_WIDGET (notebook));
   g_object_notify_by_pspec (G_OBJECT (notebook), properties[PROP_PAGE]);
 }